(function (G) {
    window["components_Dialog_Dialog"]({
      "component": true,
      "usingComponents": {}
    }, {
      template: '#TEMPLATE_components_Dialog_Dialog',
  
      options: {
        multipleSlots: true
      },
  
      props: {
        title: {
          type: String,
          default: '提示'
        },
        visible: {
          type: Boolean,
          default: false,
          sync: true, // 让 visible 支持双向绑定
          observer(newValue) {
            console.log('Dialog visible changed:', newValue);
            if (newValue) {
              G.canPullDownRefresh = false;
            } else {
              G.canPullDownRefresh = true;
            }
          }
        },
        coverStyle: {
          type: String,
          default: ''
        },
        contentStyle: {
          type: String,
          default: ''
        }
      },
  
      methods: {
        _close() {
          this.$emit('close');  // 触发父组件的close事件
          G.canPullDownRefresh = true;
        },
  
        confirmDialog() {
          console.log("点击确认");
          this.$emit('confirm');  // 触发父组件的confirm事件
          this._close();  // 关闭对话框
        }
      }
    });
  })(Y);
  